package com.gjintel.framework.paytype.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;
@Entity
@Table(name = "t_sys_trade_type")
@SuppressWarnings("serial")
public class PayType implements Serializable{
	private String id;
	private String name;
	private Date createTime;
	
	@Column(name = "create_time", insertable = true, updatable = true)
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "type_code", insertable = true, updatable = true)
	public String getType_code() {
		return type_code;
	}

	public void setType_code(String typeCode) {
		type_code = typeCode;
	}

	private Date update_time;
	
	@Column(name = "update_time", insertable = true, updatable = true)
	public Date getUpdate_time() {
		return update_time;
	}

	public void setUpdate_time(Date updateTime) {
		update_time = updateTime;
	}

	private String creater;
	private String type_code;
	private String description;

	@Column(name = "creater", insertable = true, updatable = true)
	public String getCreater() {
		return creater;
	}

	public void setCreater(String creater) {
		this.creater = creater;
	}

	
	
	public PayType(){
		
	}
	
	public PayType(String id,String name){
		this.id=id;
		this.name=name;
	}
	
	

	@Id
	@GeneratedValue(generator = "UIDGenerator")
	@GenericGenerator(name = "UIDGenerator", strategy = "org.hibernate.id.UUIDHexGenerator")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	@Column(name = "name", insertable = true, updatable = true)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name="description")
	public String getDescription() {
		return description;
	}

	
	

	
	

	
}
